import App from './App'
import i18n from './lang/i18n'
import {
	uniStorage
} from './utils/storageUtil.js'
uniStorage()
import logintool from "@/common/logintool.js"
Vue.prototype.$logintool = logintool
import uView from "uview-ui"
Vue.use(uView)
import mytools from "@/utils/tools/common.js"
Vue.prototype.$mytools = mytools
import zhyPay from "@/common/pay/zhyPay.js"
Vue.prototype.$zhyPay = zhyPay
import idGenerator from "@/common/idgenerate/idGenerator.js"
Vue.prototype.$idGenerator = idGenerator
import jutuike from "@/common/jutuike/request.js"
Vue.prototype.$jutuike = jutuike


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	i18n,
	...App
})
app.$mount()
// #endif


// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	app.use(i18n)
	return {
		app
	}
}
// #endif